package com.cy2;

public class HashDemo {
    public static void main(String[] args) {
        //创建学生对象
        Student s1 = new Student("林青霞", 25);
        System.out.println(s1.hashCode());
        System.out.println(s1.hashCode());
        Student s2 = new Student("林青霞", 2500);
        System.out.println(s2.hashCode());
        System.out.println("xiao".hashCode());
        System.out.println("bit".hashCode());
        System.out.println("damengxiang".hashCode());
        System.out.println("重地".hashCode());
        System.out.println("通话".hashCode());
        //不同对象的hash值是不同的

    }
}
